# -*- coding: utf-8 -*-

###########################################################################
## Python code generated with wxFormBuilder (version 3.10.1-0-g8feb16b3)
## http://www.wxformbuilder.org/
##
## PLEASE DO *NOT* EDIT THIS FILE!
###########################################################################

import wx
import wx.xrc

###########################################################################
## Class MyFrame1
###########################################################################

class MyFrame1 ( wx.Frame ):

	def __init__( self, parent ):
		wx.Frame.__init__ ( self, parent, id = wx.ID_ANY, title = wx.EmptyString, pos = wx.DefaultPosition, size = wx.Size( 338,54 ), style = wx.DEFAULT_FRAME_STYLE|wx.TAB_TRAVERSAL )

		self.SetSizeHints( wx.DefaultSize, wx.DefaultSize )

		self.m_menubar1 = wx.MenuBar( 0 )
		self.m_menu1 = wx.Menu()
		self.m_menuItem1 = wx.MenuItem( self.m_menu1, wx.ID_ANY, u"上传", wx.EmptyString, wx.ITEM_NORMAL )
		self.m_menu1.Append( self.m_menuItem1 )

		self.m_menuItem2 = wx.MenuItem( self.m_menu1, wx.ID_ANY, u"下载", wx.EmptyString, wx.ITEM_NORMAL )
		self.m_menu1.Append( self.m_menuItem2 )

		self.m_menubar1.Append( self.m_menu1, u"文件" )

		self.m_menu3 = wx.Menu()
		self.m_menuItem3 = wx.MenuItem( self.m_menu3, wx.ID_ANY, u"按考场打印", wx.EmptyString, wx.ITEM_NORMAL )
		self.m_menu3.Append( self.m_menuItem3 )

		self.m_menuItem4 = wx.MenuItem( self.m_menu3, wx.ID_ANY, u"按班级打印", wx.EmptyString, wx.ITEM_NORMAL )
		self.m_menu3.Append( self.m_menuItem4 )

		self.m_menuItem5 = wx.MenuItem( self.m_menu3, wx.ID_ANY, u"手动定位", wx.EmptyString, wx.ITEM_NORMAL )
		self.m_menu3.Append( self.m_menuItem5 )

		self.m_menuItem6 = wx.MenuItem( self.m_menu3, wx.ID_ANY, u"获取配置", wx.EmptyString, wx.ITEM_NORMAL )
		self.m_menu3.Append( self.m_menuItem6 )

		self.m_menuItem7 = wx.MenuItem( self.m_menu3, wx.ID_ANY, u"计数清零", wx.EmptyString, wx.ITEM_NORMAL )
		self.m_menu3.Append( self.m_menuItem7 )

		self.m_menubar1.Append( self.m_menu3, u"选项" )

		self.SetMenuBar( self.m_menubar1 )


		self.Centre( wx.BOTH )

		# Connect Events
		self.Bind( wx.EVT_CLOSE, self.onClose )
		self.Bind( wx.EVT_SIZE, self.s )
		self.Bind( wx.EVT_MENU, self.dataUP, id = self.m_menuItem1.GetId() )
		self.Bind( wx.EVT_MENU, self.dataDown, id = self.m_menuItem2.GetId() )
		self.Bind( wx.EVT_MENU, self.onkc, id = self.m_menuItem3.GetId() )
		self.Bind( wx.EVT_MENU, self.onbj, id = self.m_menuItem4.GetId() )
		self.Bind( wx.EVT_MENU, self.manualPos, id = self.m_menuItem5.GetId() )
		self.Bind( wx.EVT_MENU, self.get_config, id = self.m_menuItem6.GetId() )
		self.Bind( wx.EVT_MENU, self.clearCount, id = self.m_menuItem7.GetId() )

	def __del__( self ):
		pass


	# Virtual event handlers, override them in your derived class
	def onClose( self, event ):
		event.Skip()

	def s( self, event ):
		event.Skip()

	def dataUP( self, event ):
		event.Skip()

	def dataDown( self, event ):
		event.Skip()

	def onkc( self, event ):
		event.Skip()

	def onbj( self, event ):
		event.Skip()

	def manualPos( self, event ):
		event.Skip()

	def get_config( self, event ):
		event.Skip()

	def clearCount( self, event ):
		event.Skip()


###########################################################################
## Class MyPanel1
###########################################################################

class MyPanel1 ( wx.Panel ):

	def __init__( self, parent, id = wx.ID_ANY, pos = wx.DefaultPosition, size = wx.Size( -1,-1 ), style = wx.TAB_TRAVERSAL, name = wx.EmptyString ):
		wx.Panel.__init__ ( self, parent, id = id, pos = pos, size = size, style = style, name = name )

		bSizer1 = wx.BoxSizer( wx.VERTICAL )

		bSizer3 = wx.BoxSizer( wx.HORIZONTAL )

		self.m_staticText2 = wx.StaticText( self, wx.ID_ANY, u"筛选年级", wx.DefaultPosition, wx.DefaultSize, 0 )
		self.m_staticText2.Wrap( -1 )

		bSizer3.Add( self.m_staticText2, 0, wx.ALL|wx.ALIGN_CENTER_VERTICAL, 5 )

		m_choice1Choices = [ u"无", u"七年级", u"八年级", u"九年级" ]
		self.m_choice1 = wx.Choice( self, wx.ID_ANY, wx.DefaultPosition, wx.DefaultSize, m_choice1Choices, 0 )
		self.m_choice1.SetSelection( 0 )
		bSizer3.Add( self.m_choice1, 1, wx.ALL|wx.EXPAND, 5 )

		self.m_button4 = wx.Button( self, wx.ID_ANY, u"定位", wx.DefaultPosition, wx.DefaultSize, 0 )
		bSizer3.Add( self.m_button4, 0, wx.ALL, 5 )

		self.m_staticText4 = wx.StaticText( self, wx.ID_ANY, u"-1", wx.DefaultPosition, wx.DefaultSize, 0 )
		self.m_staticText4.Wrap( -1 )

		bSizer3.Add( self.m_staticText4, 0, wx.ALL, 5 )


		bSizer1.Add( bSizer3, 0, 0, 5 )

		bSizer4 = wx.BoxSizer( wx.HORIZONTAL )

		self.m_staticText3 = wx.StaticText( self, wx.ID_ANY, u"当前考场", wx.DefaultPosition, wx.DefaultSize, 0 )
		self.m_staticText3.Wrap( -1 )

		bSizer4.Add( self.m_staticText3, 0, wx.ALL|wx.ALIGN_CENTER_VERTICAL, 5 )

		m_choice2Choices = [ u"无     " ]
		self.m_choice2 = wx.Choice( self, wx.ID_ANY, wx.DefaultPosition, wx.Size( -1,-1 ), m_choice2Choices, 0 )
		self.m_choice2.SetSelection( 0 )
		bSizer4.Add( self.m_choice2, 1, wx.ALL|wx.EXPAND, 5 )

		self.m_staticText31 = wx.StaticText( self, wx.ID_ANY, wx.EmptyString, wx.DefaultPosition, wx.DefaultSize, 0 )
		self.m_staticText31.Wrap( -1 )

		bSizer4.Add( self.m_staticText31, 0, wx.ALL, 5 )


		bSizer4.Add( ( 0, 0), 1, wx.EXPAND, 5 )

		self.m_checkBox1 = wx.CheckBox( self, wx.ID_ANY, u"双份", wx.DefaultPosition, wx.DefaultSize, 0 )
		bSizer4.Add( self.m_checkBox1, 0, wx.ALL, 5 )


		bSizer1.Add( bSizer4, 0, 0, 5 )

		bSizer2 = wx.BoxSizer( wx.HORIZONTAL )


		bSizer2.Add( ( 0, 0), 0, 0, 5 )

		self.m_button1 = wx.Button( self, wx.ID_ANY, u"打印当前考场", wx.DefaultPosition, wx.DefaultSize, 0 )
		bSizer2.Add( self.m_button1, 0, wx.ALL, 5 )

		self.m_button2 = wx.Button( self, wx.ID_ANY, u"打印下一考场", wx.DefaultPosition, wx.DefaultSize, 0 )
		bSizer2.Add( self.m_button2, 0, wx.ALL, 5 )

		self.m_button3 = wx.Button( self, wx.ID_ANY, u"刷新当前考场", wx.DefaultPosition, wx.DefaultSize, 0 )
		bSizer2.Add( self.m_button3, 0, wx.ALL, 5 )


		bSizer2.Add( ( 0, 0), 0, 0, 5 )


		bSizer1.Add( bSizer2, 1, wx.EXPAND, 5 )


		bSizer1.Add( ( 0, 0), 0, 0, 5 )


		self.SetSizer( bSizer1 )
		self.Layout()
		bSizer1.Fit( self )

		# Connect Events
		self.Bind( wx.EVT_KEY_DOWN, self.Onld )
		self.m_choice1.Bind( wx.EVT_CHOICE, self.choiceGrade )
		self.m_button4.Bind( wx.EVT_BUTTON, self.findLocation )
		self.m_choice2.Bind( wx.EVT_CHOICE, self.choiceTestRoom )
		self.m_checkBox1.Bind( wx.EVT_CHECKBOX, self.click_double )
		self.m_button1.Bind( wx.EVT_BUTTON, self.click1 )
		self.m_button2.Bind( wx.EVT_BUTTON, self.click2 )
		self.m_button3.Bind( wx.EVT_BUTTON, self.click3 )

	def __del__( self ):
		pass


	# Virtual event handlers, override them in your derived class
	def Onld( self, event ):
		event.Skip()

	def choiceGrade( self, event ):
		event.Skip()

	def findLocation( self, event ):
		event.Skip()

	def choiceTestRoom( self, event ):
		event.Skip()

	def click_double( self, event ):
		event.Skip()

	def click1( self, event ):
		event.Skip()

	def click2( self, event ):
		event.Skip()

	def click3( self, event ):
		event.Skip()


